home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
e
/
elfworksforlightwave.lha
/
ClickToInstall
< prev
next >
Wrap
AmigaDOS Script File
|
1994-01-10
|
3KB
|
93 lines
.KEY pathname
.DEF pathname "DH0:Toaster/3D"
echo "
x ELF Works Software Installer v1.0"
echo "
x"
echo "This script will install needed files onto your system."
echo "It will also create an assignment to your Toaster/3D directory"
echo "called 3D: if one does not exist. This will be permanently added"
echo "to your s:User-Startup script if you choose."
echo
echo "If you do not have a 3D: assignment already, just choose `Cancel'"
echo "when requested to `insert volume 3D:', and the installation"
echo "will continue."
echo
ask "
(Press return to continue)
"
if not exists 3D:
echo "The installer does not detect an assignment to 3D:"
if $Workbench NOT GE 39 VAL
skip WORKBENCH2
else
skip WORKBENCH3
endif
else
skip INSTALLARCHIVES
lab WORKBENCH2
echo "Creating temporary assignment of 3D: to
<pathname>
."
Assign >NIL: 3D: "<pathname>"
if warn
echo "The drawer
<pathname>
could not be found!"
echo "Using the Workbench, please select the 3D drawer inside your Toaster"
echo "drawer. This should be inside one of the hard drives on your WorkBench"
echo "screen (Work, DH0, Amiga, etc.). You will have to select 'Show All Files'"
echo "from the 'Window' menu to make the '3D' drawer visible."
echo "Once you have found the drawer, click once on the 'ClickToInstall' icon"
echo "on this disk, then hold down either shift key and double-click on the"
echo "'3D' drawer. The script will then install the files into the 3D drawer."
ask "
(Press return to exit and try again)
"
quit
endif
echo >>ENV:pathname2 <pathname>
skip INSTALLFILES
lab WORKBENCH3
echo "Please use the following file requester to select the drawer you"
echo "normally store all your 3D Objects and Scenes in."
echo
ask "
(Press return to continue)
"
lab GETPATH
RequestFile >ENV:pathname2 DRAWER <pathname> TITLE "Select your 3D drawer..." DRAWERSONLY NOICONS
echo "Creating temporary assignment of 3D: to
$pathname2
."
echo
Assign 3D: $pathname2
if warn
echo "The drawer
$pathname2
could not be found!"
echo "When requested, please select the 3D drawer inside your Toaster"
echo "drawer. The Toaster drawer should be inside one of the hard drives"
echo "installed on your system (Work, DH0, Amiga, etc.)."
echo "Once you have found the drawer, select it and make sure the entire"
echo "pathname shows up in the file requester."
echo "Click on the 'OK' button to choose that drawer as your"
echo "new 3D: directory."
echo
ask "
(Press return to try again)
"
skip GETPATH back
endif
lab INSTALLFILES
echo "Would you like your s:User-Startup file PERMANENTLY changed"
echo "to add an assignment to 3D: (a backup copy of your original"
ask "will be created)?"
if warn
copy s:User-Startup s:User-Backup
echo >>s:User-Startup ";Begin ELF Works 3D: Assignment"
echo >>s:User-Startup "Assign 3D: " NOLINE
type >>s:User-Startup FROM ENV:pathname2
echo >>s:User-Startup ";End ELF Works 3D: Assignment"
echo "Change completed!"
echo "A copy of your old script exists as s:User-Backup."
endif
lab INSTALLARCHIVES
ask "Would you like to install the files into 3D:?"
if warn
echo "Installing files . . ."
lha x *.lha 3D:
else
lab QUITINSTALL
echo "Exiting installation without installing files."
quit 5
endif
quit 0